package com.yangye.otherdemo.regexdemo;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author yangye
 * @date 2019/7/30
 */
public class RegexDemo {

	static Pattern p = Pattern.compile("^(13|14|15|16|17|18)[0-9]{9}$");
	static String test = "16606129203";

	public static void main(String[] args) {
		Matcher matcher = p.matcher(test);
//		System.out.println(matcher.find());
//		System.out.println(matcher.find());
	}


//	public static void main(String[] args) {
//		Matcher matcher = p.matcher(test);
//		while (matcher.matches()) {
//			System.out.println("success");
//		}
//		System.out.println(123);
//	}
}
